package org.mspring.mlog.scheduler.job;

import org.mspring.mlog.ServiceFactory;
import org.mspring.mlog.service.PostService;
import org.quartz.JobExecutionContext;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 *
 * @author Gao Youbo
 * @since 2014年5月16日
 */
public class UpdateReplysJob extends BaseJob {

    private static final Logger log = LoggerFactory.getLogger(UpdateReplysJob.class);

    @Override
    protected void nativeExecuteInternal(JobExecutionContext context) {
        PostService postService = ServiceFactory.getPostService();
        int result = postService.updateReplys();
        log.info("本次共更新{}篇文章回复数量", result);
    }

}
